package com.njbdqn.myfilm.componses;

import org.springframework.stereotype.Component;

@Component
public class PageParam {
	private int currentPage=1;
	private int pageSize=10;
	private String cond;
	private String cpval;
	public int getCurrentPage() {
		return currentPage;
	}
	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public String getCond() {
		return cond;
	}
	public void setCond(String cond) {
		this.cond = cond;
	}
	public String getCpval() {
		return (currentPage-1)*pageSize+","+pageSize;
	}
	public void setCpval(String cpval) {
		this.cpval = cpval;
	}
	
	
}
